const promise = new Promise((resolve, reject) => {
  // resolve(100)
  reject(new Error('promise err'))
})

promise.then((value) => {
  console.log(value)
}, (err) => {
  // console.dir(err)
  // console.log(err.message)
})